package com.jsu.dao;

import com.jsu.bean.Usr;
import com.jsu.bean.UsrExample;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

public interface UsrMapper {
	
	
    int countByExample(UsrExample example);

    int deleteByExample(UsrExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(Usr record);

    int insertSelective(Usr record);

    List<Usr> selectByExample(UsrExample example);

    Usr selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") Usr record, @Param("example") UsrExample example);

    int updateByExample(@Param("record") Usr record, @Param("example") UsrExample example);

    int updateByPrimaryKeySelective(Usr record);

    int updateByPrimaryKey(Usr record);

	Integer selectIdByName(String username);
}